<?php
$title = "Add new category";
$this->headTitle($title);
?>
<div class="panel panel-primary">
    <div class="panel-heading">
	<h5><?php echo $this->escapeHtml($title); ?></h5>
    </div>
    <div class="panel-body">
	<?php
	$form = $this->form;
	$form->setAttribute('action', $this->url('category', array('action' => 'add')));
	$form->prepare();

	echo $this->form()->openTag($form);
	echo $this->formHidden($form->get('id'));
	?>
	<div class="form-group">
	<?php
	echo $this->formRow($form->get('name'));
	?>
	</div>
	<div class="form-group"><?php
	echo $this->formRow($form->get('alias'));
	?></div>
	<div class="form-group">
	    <?php echo $this->formCheckbox($form->get('disabled')); ?>
	Disabled

	</div>
	<?php echo $this->formSubmit($form->get('submit'));?>
	<a href="<?php echo $this->url('category',array('action' => 'index',));?>" class="btn btn-default">Cancel</a>
	<?php echo $this->form()->closeTag();?>
    </div>
</div>